<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>电影编辑页面</title>
    <link href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
</head>
<body>
<div class="container">
    <h2 style="size: 16px">学号：1604220432   &emsp;&emsp; 姓名：彭秉镖</h2>
    <h1 class="text-center">电影编辑页面</h1>

    <form method="post" th:action="@{/movie/edit}">
        <div class="form-group">
            <label for="name">电影名称</label>
            <input type="text" class="form-control" name="name" th:value="${info.name}"/>
        </div>
        <div class="form-group">
            <label for="photo">电影封面</label>
            <input type="text" class="form-control" name="photo" th:value="${info.photo}"/>
        </div>
        <div class="form-group">
            <label for="createDate">发行日期</label>
            <input type="text" class="form-control" name="createDate" th:value="${info.createDate}"/>
        </div>
        <input type="hidden" class="form-control" name="id" th:value="${info.id}"/>
        <button type="submit" class="btn btn-primary">保存</button>
        <a class="btn btn-primary" th:href="@{/movie/index}">返回首页</a>
    </form>

</div>
</body>
</html>
